package com.readingtree.library.service;

import com.readingtree.library.domain.LibraryUser;
import com.readingtree.library.domain.repository.LibraryUserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/4/13.
 */
@Service
public class LibraryUserServiceImpl implements LibraryUserService{

    @Autowired
    private LibraryUserRepository libraryUserRepository;

    @Override
    public LibraryUser findByUsername(String username) {
        return libraryUserRepository.findFirstByUsername(username);
    }
}
